//
//  CusTableViewCell.m
//  20-JSONHomework
//
//  Created by dllo on 16/8/10.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "CusTableViewCell.h"
#import "Brand.h"
#import "UIImageView+WebCache.h"
@interface CusTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *carsImageView;
@property (weak, nonatomic) IBOutlet UILabel *carsNameLabel;

@end

@implementation CusTableViewCell

- (void)setBrand:(Brand *)brand {
    _brand = brand;
    _carsNameLabel.text = brand.name;
    [_carsImageView sd_setImageWithURL:[NSURL URLWithString:brand.imgurl]];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
